﻿using System;
namespace Game
{
    public class Archer : Slime
    {
        public Archer(char side, int id, int x, int y)
            : base(side, id, x, y)
        {
            MaxHP = 150;
            HP = MaxHP;
            _atk = 50;
            _rag = 3;
            _movdis = 4;

        }
        public override void Display(char C)
        {
            char CA = 'A';
            char CM = 'M';
            if (HP <= 0 || !Active && !_canmove) { CA = CM = ' '; }
            else if (!Active) { CA = ' '; }
            else if (!_canmove) { CM = ' '; }
            Console.Write("弓手史萊姆(" + (char)(C + _id) + ") " + CA + CM + " " + HP + "/" + MaxHP + "  ");
        }
        public override string InitType() {
            return "archer";
        }
    }

}